package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuHasStockVo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-ware")    //指定要远程调用哪个服务
public interface WareFeignService {
    //根据skuId查询库存
    @PostMapping("ware/waresku/hasstock")    //指定要远程调用服务下的哪个方法
    R getSkusHanStock(@RequestBody List<Long> skuIds);
}
